/** @type {import('next').NextConfig} */
const nextConfig = {
  reactStrictMode: true,
  swcMinify: true,
  compiler: {
    styledComponents: true,
  },
  images: {
    domains: ['localhost'],
  },
  env: {
    API_URL: process.env.API_URL || 'http://localhost:8888',
    SANDBOX_API_URL: process.env.SANDBOX_API_URL || 'http://localhost:7777',
    SOCKET_URL: process.env.SOCKET_URL || 'http://localhost:8888',
  },
  async rewrites() {
    return [
      {
        source: '/api/:path*',
        destination: `${process.env.API_URL || 'http://localhost:8888'}/api/:path*`,
      },
    ];
  },
};

module.exports = nextConfig; 